/**
 * @作者:黎谢之
 * @创建时间：2021/7/7
 * @修改时间：2021/7/10
 */
package com.example.senior_bug.enm;

public enum MsgId {
    CHANNEL_NOT_FOUND(1, "未找到该第一分级"),
    CATEGORY_NOT_FOUND(2, "未找到该第二分级"),
    BUSINESS_NOT_FOUND(3, "未找到该商家"),
    ANYSKU_NOT_FOUND(4, "未找到任何商品"),
    SKU_NOT_FOUND(5, "找不到该商品的详细信息"),
    GOOD_NOT_FOUND(6, "找不到该货物"),
    CUSTOMER_NOT_FOUND(7, "找不到该用户"),
    ADDNEWSKU_FAILED(8, "添加新商品失败"),
    KEYWORDS_NOT_FOUND(9, "该关键词未找到"),
    PASSWORD_NOT_CORRECT(10, "密码错误"),
    PHONE_NOT_REGISTER(11, "该手机未注册"),
    EMAIL_NOT_REGISTER(12, "邮箱未注册"),
    REGISTER_FAILED(13, "注册失败"),
    NIKENAME_HAVE_BEEN_REGISTER(14, "昵称已被注册"),
    PHONENUM_HAVE_BEEN_REGISTER(15, "手机号已注册"),
    EMAIL_HAVE_BEEN_REGISTER(16, "邮箱号已注册"),
    STORENAME_HAVE_BEEN_REGISTER(17, "店铺名已存在"),
    IDENTITYNUM_HAVE_BEEN_REGISTER(18, "身份证号已注册"),
    ADD_SHOPPING_CART_FAILED(19, "添加购物车失败"),
    ADDRESS_NOT_SET(20, "没有设置默认地址"),
    NOT_ANY_ORDER(21, "没有订单"),
    ADD_ORDER_FAILED(22, "添加订单失败"),
    FILE_IS_NULL(23, "文件不能为空"),
    FILE_TOO_LARGE(24, "文件太大"),
    EXTENSION_IS_INCORRECT(25, "文件格式不对,请选择jpg,jpeg,gif,png格式的图片"),
    FILE_EXCEPTION(26, "文件异常"),
    ADD_ADDRESS_FAILED(27, "添加地址失败"),
    ADDRESS_NOT_FOUND(28, "未找到地址"),
    MODIFY_ERROR(29, "修改失败"),
    ADDRESS_ERROR(30, "地址异常"),
    FLAG_NULL(31, "参数为空"),
    ILLEGAL_STATE(32, "非法商品状态"),
    ADD_COMMUNICATION_ERROR(33, "添加聊天失败");


    private int code;
    private String msg;

    MsgId(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
